package cn.walls1717.wallsmall.ware.service;

import cn.walls1717.wallsmall.common.utils.PageUtils;
import cn.walls1717.wallsmall.ware.entity.WareInfoEntity;
import cn.walls1717.wallsmall.ware.pojo.vo.FareVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * 仓库信息
 *
 * @author walls1717
 * @email walls1717@163.com
 * @date 2022-10-21 13:26:06
 */
public interface WareInfoService extends IService<WareInfoEntity> {

    /**
     * 分页条件查询
     *
     * @param params 条件参数
     * @return 分页数据
     */
    PageUtils listPagesByCondition(Map<String, Object> params);

    /**
     * 根据addressId计算运费
     *
     * @param addrId addressId
     * @return 运费
     */
    FareVO getFareByAddressId(Long addrId);
}

